<?php
class TopicViewModel extends Model{
	protected $viewModel = true;
	protected $masterModel = 'Topic';
	protected $viewFields = array(
		'Topic'=>array('id','sid','subject','content','ischecked','istop','_type'=>'LEFT'),
		'Special'=>array('title','_on'=>'Topic.sid=Special.id'),
		);
	//protected $viewCondition = array("Product.cid" => array('eqf',"Category.id"));
	public function getPk() {
		return 'id';
	}
}
?>